-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(validation): validation fails if component has source_config #337
feat(validation): validation fails if component has source_config #337
Conversation
I do have 2 questions tho:
Appreciate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @markkovari ! I think the structure of this PR looks great, you may just need to consider a change or two after #307. If we want to try and move this forward now, we should at least just change the parsing of the source_config key to be in a link trait
tests/fixtures/manifests/with-source-config-on-component.wadm.yaml
Outdated
Show resolved
Hide resolved
Alright @markkovari you should be good to proceed with this one 😄 Just take note of the newer structure where the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this has been closed too eagerly, please feel free to tag a maintainer so we can keep working on the issue. Thank you for contributing to wasmCloud! |
Just a question here: since |
Hey @markkovari , yep I think it's still relevant here just failing when It would be best to do the validation in a place where we can just use the same logic for both |
f8a269d
to
5089132
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there @markkovari! I think there is a line in the test left over and the failure should be a warning as it is only a deprecated field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops hit wrong button
Thanks will add this changes tomorrow early. But still not sure if this is the expected behavior or not. WADM is so much more magical than wasmCloud 😄 |
This is a great start @markkovari. There is definitely more we could add to this part of validation, but even having something that warns about deprecation is great |
@thomastaylor312 @brooksmtownsend sorry for the delay Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, any thoughts here @thomastaylor312 ? Looks like we can remove the validate_raw_yaml
bit once we finally remove the source_config/target_config fields
b569776
to
3cd97cc
Compare
Signed-off-by: Márk Kővári <[email protected]>
3cd97cc
to
aed1811
Compare
Feature or Problem
Related Issues
#288
Release Information
Consumer Impact
Testing
Unit Test(s)
unit tests should cover the negative case, other validation calls don't have this error
Acceptance or Integration
Manual Verification